#include "includes.h"


void display(char *string)
{
    while(*string != '\0') { 
        UART0_A9 = *string; string++; 
    }
}
 
unsigned int raise (unsigned int signum)
{
	return 0;
}

void * memset(void *dest, int set, unsigned int len)
{
	if (dest == NULL || len < 0)
	{
		return NULL;
	}
	char *pdest = (char *)dest;
	while (len-->0)
	{
		*pdest++ = set;
	}
	return dest;
}

void* memcpy(void* dest,const void* src, unsigned int num)
{
	void* ret = dest;
	if (dest == NULL)
	{
		return NULL;
	}
	if (src == NULL)
	{
		return NULL;
	}
	//有多少个字节执行多少次
	char* dest1,*src1;
	while (num--)
	{
		//一个字节一个字节进行赋值
		*dest1 = *src1;
		++dest1;
		++src1;
	}
	return ret;
}
